package com.myslef.teaching_platfrom.domain.talk;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TalkList {
    private Talk talk;

    private boolean showChild = false;

    private List<Talk> next;


    TalkList(){
        next = new ArrayList<>();
    }


    public TalkList(Talk talk){
        this.talk = talk;
        next = new ArrayList<>();
    }
    public void add(Talk talk){
        next.add(talk);
    }

}
